<!doctype html>
<html lang="en" data-server-rendered="true" xmlns:th="http://www.thymeleaf.org">
<head><title>登录 - 考必胜</title>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script type="text/javascript" src="/js/jquery.min.js"></script>
    <link rel="apple-touch-icon" href="/logo.png">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="../static/css/login/login1.css" data-th-href="@{/css/login/login1.css}">
    <link rel="stylesheet" href="../static/css/login/login2.css" data-th-href="@{/css/login/login2.css}">

</head>
<body>
<div id="app">
    <div class="main">
        <div user-info="userInfo" class="top-header">
            <div class="nav">
                <div class="container">
                    <div class="logo"><a href="/"><img title="考必胜"
                        data-th-src="@{/images/logo.jpg}"></a>
                    </div>
                </div>
            </div>
        </div>
        <div>
            <div class="pageBanner page6" ></div> <!---->
            <div class="right_login">
                <div class="container">
                    <div class="rightRegi"><p>还没有帐号？</p> <a href="/user/register">立即注册</a></div>
                    <div class="loginMain">
                        <div class="testEvaluation">
                            <div class="logintit">考必胜登录系统</div>
                            <form data-th-action="@{/account/login}" method="post">
                                <span><p>账户：</p> <input placeholder="请输入电话" id="userPhone" name="account" type="text" maxlength="11"> </span>
                                <div id="u1" style="display: inline"></div>
                                <br>
                                <span><p>密码：</p> <input placeholder="请输入密码" name="password" type="password" maxlength="16"  minlength="6"></span>
                                <button type="submit">登录</button>
                            </form>
                            <div class="forget"><a href="/user/retrieve">忘记密码</a> <a href="/user/register">去注册&gt;</a></div>
                            <div data-v-169f800d="" class="other"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
     // function exitphone() {
     //     var mPattern = /^1[34578]\d{9}$/;
     //     var userPhone = $('#userPhone').val();
     //     if(!mPattern.test(userPhone)) {
     //         document.getElementById("u1").innerHTML = "<font color='red' >电话输入有误！</font>"
     //         return false;
     //     }
     //     $.ajax({
     //         type: "post",
     //         url: "/user/exitphone",
     //         data: "userPhone=" + userPhone,
     //         success: function (data) {
     //             ine(data);
     //         }
     //     });
     // }

     // function ine(data) {
     //    if (data == 1) {
     //        document.getElementById("u1").innerHTML = "<font color='green' >帐号输入正确</font>";
     //    } else if (data == 2) {
     //        document.getElementById("u1").innerHTML = "<font color='red'>帐号不能为空</font>";
     //    } else if (data == 3) {
     //        document.getElementById("u1").innerHTML = "<font color='red'>该账号还未注册</font>";
     //    } else if (data == 0) {
     //        document.getElementById("u1").innerHTML = "<b style='color:red'>ajax成功返回值为空</b>"
     //    } else {
     //        document.getElementById("u1").innerHTML = "<font color='red'>未知错误</font>";
     //    }
     // }
     // $("#userPhone").blur(function() {
     //     exitphone();
     // });
</script>
<script th:inline="javascript">
    var msg = [[${msg}]];
    if(msg != null){
        alert(msg);
        msg="";
    }
</script>
<script type="text/javascript" src="http://static.gaokao.nercel.com/web/public/js/runtime.5e792e78.js"></script>
<script type="text/javascript" src="http://static.gaokao.nercel.com/web/public/js/chunk/common.b2c17e59.js"></script>
<script type="text/javascript" src="http://static.gaokao.nercel.com/web/public/js/chunk/auth/login.24ccd534.js"></script>
</body>
</html>